use std::path::Path;
use crate::commands::jdocker::Jdocker;

pub fn images(){
    let image_dir = Jdocker::new().get_image_dir();
    let image_dir_path = Path::new(&image_dir);
    let dir = image_dir_path.read_dir().expect("Could not read directory");
    dir.into_iter().enumerate().for_each(|(i,r)|{
        if let Ok(entry) = r{
            println!("{} image: {:?}",i,entry.file_name())
        }
    })
}